#include "Buffer.h"
#include "Platform/OpenGL/OpenGLBuffer.h"
namespace Orange
{
    Ref<VertexBuffer> VertexBuffer::Create(float *vertexs, uint32_t size)
    {
        return std::make_shared<OpenGLVertexBuffer>(vertexs, size);
    }

    Ref<IndexBuffer> IndexBuffer::Create(uint32_t *indexes, uint32_t count)
    {
        return std::make_shared<OpenGLIndexBuffer>(indexes, count);
    }
}